package com.yzw.dao;

import com.yzw.dao.entity.AsyncTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yzw
 * @date 2022/8/27 14:37
 * @desc 异步任务
 */
@Mapper
public interface AsyncTaskDao {

    public void insertEntity(AsyncTaskEntity entity);

    AsyncTaskEntity findByTaskSystemBussinessId(@Param("sourceId") String taskId, @Param("targetSystemId")  String targetSystemId, @Param("bussinessId") String bussinessId);

    void insertBatchEntity(List<AsyncTaskEntity> asyncTaskEntityList);

    List<Long> findBySourceId(String sourceId);
}
